#pragma once
#include <YSimpleSystem/YProactorToken.h>

namespace ysimple_network
{
	struct IConnectCallback;
	struct ITCPSession;

	class YProactorTokenOnConnect :
		public ysimple_system::YProactorToken
	{
		IConnectCallback*	m_pCallback;
		ITCPSession*				m_pSession;
	public:
		YProactorTokenOnConnect(void);
		virtual ~YProactorTokenOnConnect(void);

		void	beginInit(IConnectCallback& callback, ITCPSession& session);		
		void	endInit(bool success);
		bool	onCompleted(bool completionStatus, LONG_PTR		completionKey, DWORD			dwBytesTransfered ) override;
	};

}

